package com.biostime.dingdingbox.modules.db.dao;

import org.apache.ibatis.annotations.Param;

import com.biostime.dingdingbox.common.mybatis.MyBatisDao;
import com.biostime.dingdingbox.common.persistence.CrudDao;
import com.biostime.dingdingbox.modules.db.entity.PraiseRecord;

/**
 * 会员玩具关系表Dao
 * @author chenweicheng
 * @version 2016-06-29
 */
@MyBatisDao
public interface PraiseRecordDao extends CrudDao<PraiseRecord> {
	public int apiRecomPraiseCount();
	
	public int apiStrategyPraiseCount(@Param("strategyId")String strategyId , @Param("userId")String userId);
	
	public PraiseRecord apiGetPraiseRecord(@Param("type") String type,@Param("strategyId")String strategyId,@Param("userId")String userId);
	
	public void apiCancelPraise(@Param("type") String type,@Param("strategyId")String strategyId,@Param("userId")String userId);
}